package gogoqiu.java.base.http.response;

/**
 * T data
 * data
 *
 * @param <T>
 */
public class StandardResponse<T> extends BaseJsonResponse {
    //protected String result;
    //protected String action;
    protected T data;

    /*
    public StandardResponse( boolean $retval, int $code, String $result, String $msg, String $action, T data ){
        this.retval = $retval;
        this.code = $code;
        this.msg = $msg;
        this.result = $result;
        this.action = $action;
        this.data = data;
    }
    */

    public StandardResponse(){};
/*
    public String getAction(){
        return this.action;
    }

    public void setAction( String $action ){
        this.action = $action;
    }

    public String getResult( ){
        return this.result;
    }

    public void setResult ( String $result ){
        this.result = $result;
    }
    
    public void setResult ( T data  ){
        this.data = data;
    }
    */
    public T getData( ){
        return this.data;
    }

    public void setData( T o ){ this.data = o; }
}
